package com.oa.system.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 规则说明表
 * </p>
 *
 * @author syb123
 * @since 2019-01-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_rule_description")
@ApiModel(value = "规则说明表")
public class RuleDescription extends Model<RuleDescription> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "说明")
    private String description;

    @ApiModelProperty(value = "是否删除(1-已删除 2-未删除)")
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}